<template>
  <el-container>
    <el-header style="height: auto" id="aa">
      <el-row :gutter="20">
        <el-col :span="2">
          <img
            src="../assets/pt1.png"
            alt=""
            style="width: 70px; height: 72px; margin-left: 30px"
          />
        </el-col>
        <el-col :span="10">
          <h1 style="padding: 5px; margin: 5px; color: white">
            呼和浩特市投资项目在线审批监管平台
          </h1>
          <p style="padding: 5px; margin: 5px; color: white">
            Hohhot investment project online approval and supervision platform
          </p>
        </el-col>
        <el-col :span="6">
          <el-input
            placeholder="请输入内容"
            suffix-icon="el-icon-search"
            v-model="input"
            style="margin-top: 20px"
          >
          </el-input>
        </el-col>
        <el-col :span="6">
          <el-link
            @click="userCenter"
            style="
              color: white;
              padding: 10px;
              margin-top: 22px;
              margin-left: 100px;
            "
            >用户中心</el-link
          >
          <el-link
            style="color: white; padding: 10px; margin-top: 22px"
            @click="exit"
            >注销</el-link
          >
        </el-col>
      </el-row>
      <el-row>
        <el-menu
          :default-active="activeIndex"
          class="el-menu-demo"
          mode="horizontal"
          @select="handleSelect"
          background-color="#2A96E4"
          text-color="#fff"
          active-text-color="#ffd04b"
        >
          <el-menu-item index="1" @click="onFir">首页</el-menu-item>
          <el-menu-item index="2" @click="onSec">公示信息</el-menu-item>
          <el-menu-item index="3">政策法规</el-menu-item>
          <el-menu-item index="4">招商引资</el-menu-item>
          <el-menu-item index="5" @click="onFif">查看项目信息</el-menu-item>
        </el-menu>
      </el-row>
    </el-header>
    <el-main id="bb">
      <router-view></router-view>
    </el-main>
    <el-footer style="height: 150px" id="cc">
      <el-row :gutter="20">
        <el-col :span="4" style="border-right: 1px dotted gray">
          <ul class="list" style="list-style: none">
            <li>
              <a href="#" target="_blank" style="color: white">网站地图</a>
            </li>
            <li>
              <a href="#" target="_blank" style="color: white">联系我们</a>
            </li>
            <li>
              <a href="#" target="_blank" style="color: white">网站声明</a>
            </li>
          </ul>
        </el-col>
        <el-col :span="8" style="border-right: 1px dotted gray">
          <p style="color: white">主办单位：呼和浩特市发展和改革委员会</p>
          <p style="color: white">电 话：0471-4606322</p>
          <p style="color: white">技术支持：内蒙古凌动信息科技有限公司</p>
          <p style="color: white">
            <a href="#" target="_blank" style="color: white"
              >蒙公网安备15010202150110号</a
            >
          </p>
        </el-col>
        <el-col :span="12">
          <p style="color: white">承办单位：呼和浩特市发展和改革委员会办公室</p>
          <p style="color: white">E-Mail ：hsfgwxxk@163.com</p>
          <p style="color: white">政府网站标识码 ：1501000029</p>
          <p style="color: white">
            备 案：<a
              target="_blank"
              href="#"
              rel="nofollow"
              style="color: white"
              >蒙ICP备20000349号-1</a
            >
          </p>
        </el-col>
      </el-row>
    </el-footer>
  </el-container>
</template>
<script>
export default {
  data() {
    return {
      input: "",
      activeIndex: "1",
      activeName: "second",
      
    };
  },
  methods: {
    async exit(){
      await this.$http.get('http://192.168.43.140:8091/enterprise/logout')
      .then((result) => {
        console.log(result);
        this.$router.push('/shouye');
      }).catch((err) => {
        console.log(err);
      });
      
    },
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    },
    userCenter(){
      this.$router.push('user');
    },
    onFir(){
      this.$router.push('first');
    },
    onSec(){
      this.$router.push('second');
    },
    onFif(){
      this.$router.push('fifth');
    }
  },
};
</script>
<style>
#aa {
  background-color: #2a96e4;
}
.form-control {
  margin-top: 30px;
}
#bb {
  background-image: url("../assets/pt2.jpg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  height: auto;
}
.frame1 {
  /* border: 0.1px solid whitesmoke; */
  margin-left: 5%;
  margin-right: 5%;
  margin-top: 50px;
  margin-bottom: 50px;
  height: auto;
}
.frame1 :hover {
  box-shadow: 0 0 15px rgba(0, 204, 204, 0.5);
}
.frame1 > * :hover {
  box-shadow: none;
}
#cc {
  background-image: url("../assets/pt2.jpg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.el-breadcrumb {
  background-color: #f4f7fa;
  margin-top: 50px;
  height: 30px;
  padding-top: 15px;
  padding-left: 50px;
  margin-left: 100px;
  margin-right: 100px;
}
</style>